&lt;cfcomponent&gt;
	&lt;cfscript&gt;
		this.name = "<cfoutput>#form.context_name#-vX.XX</cfoutput>";
		this.applicationTimeout = createTimeSpan(1,0,0,0);
		this.sessionManagement = true;
		this.sessionTimeout = createTimeSpan(1,0,0,0);
		this.clientManagement = true;
		this.loginStorage = "Session";
	&lt;/cfscript&gt;
	
	&lt;cffunction name="onApplicationStart"&gt;
		&lt;cfset var configuration = createObject("component","Config") /&gt;
		&lt;cfset application.config = configuration.getConfig() /&gt;
		
		&lt;cfset application['env'] = application.config.env[application.config.current_env] /&gt;
		&lt;cfset application['env']['env_name']= application.config.current_env /&gt;
		
		&lt;cfset application.utils = createObject("component","app.utils.helper").init() /&gt;
		&lt;cfset structDelete(application, 'config') /&gt;
	&lt;/cffunction&gt;
	
	&lt;cffunction name="onApplicationEnd"&gt;
	
	&lt;/cffunction&gt;
	
	&lt;cffunction name="onRequestStart"&gt;
		&lt;cfset onApplicationStart() /&gt;
		&lt;cfparam name="application['env']['showdebug']" default="false" /&gt;
		&lt;cfsetting showdebugoutput="#application['env']['showdebug']#" /&gt;	

		&lt;cfif right(CGI.SCRIPT_NAME,3) eq 'cfm'&gt;
			&lt;cfinclude template="app/view/layout/header.cfm" /&gt;
		&lt;/cfif&gt;
	&lt;/cffunction&gt;

	&lt;!--- There is no need to use this method for now. Uncomment if your application requires this.
	&lt;cffunction name="onRequest"&gt;
		&lt;cfargument name="targetPage" default="index.cfm" type="String" /&gt;
		&lt;cfif application.env.env_name eq 'development'&gt;
			&lt;cfset onApplicationStart() /&gt;
		&lt;/cfif&gt;

		&lt;cfsavecontent variable="main_content"&gt;
			&lt;cfinclude template="#arguments.targetPage#" /&gt;
		&lt;/cfsavecontent&gt;
		
		&lt;cfoutput&gt;#main_content#&lt;/cfoutput&gt;
	&lt;/cffunction&gt; 
	---&gt;  
	
	&lt;cffunction name="onRequestEnd"&gt;
		&lt;cfinclude template="app/view/layout/footer.cfm" /&gt;
	&lt;/cffunction&gt;
	&lt;cffunction name="onSessionStart"&gt;
	
	&lt;/cffunction&gt;
	&lt;cffunction name="onSessionEnd"&gt;
	
	&lt;/cffunction&gt;
	&lt;cffunction name="onError"&gt;
		&lt;cfargument name="Exception" required="true"/&gt;
		&lt;cfargument name="EventName" type="String" required="true"/&gt;
		&lt;h2&gt;Error occurred in "&lt;cfoutput&gt;#arguments.EventName#&lt;/cfoutput&gt;"&lt;/h2&gt;
		&lt;cfdump var="#arguments.Exception#"&gt;
	&lt;/cffunction&gt;
&lt;/cfcomponent&gt;